import { createRouter, createWebHashHistory } from 'vue-router'

import DefaultPage from '../view/DefaultPage.vue'
import singBa from '../view/start/singeBa.vue'
import ErrorPage from '../view/errorAndAssets/ErrorPage.vue'
import AssetsPage1 from '../view/errorAndAssets/AssetsPage1.vue'
import AssetsBuildPage1 from '../view/errorAndAssets/AssetsBuildPage1.vue'
import DeepStyle1 from '../view/style/DeepStyle1.vue'
import GloaborPart1 from '../view/style/GloaborPart1.vue'
import SassPage1 from '../view/style/SassPage1.vue'
import BulidProject1 from '../view/style/BulidProject1.vue'
import AxiosPage from '../view/ajax/AxiosPage.vue'
import InterceptorsAxios1 from '../view/ajax/InterceptorsAxios1.vue'
import AxiosModel from '../view/ajax/AxiosModel.vue'
import AjaxProxy from '../view/ajax/AjaxProxy.vue'
import CompstionPage from '../view/composition/CompstionPage.vue'
import compoentPage from '../view/composition//compoentPage.vue'
import LifePage from '../view/composition/LifePage.vue'
import ThisPage from '../view/composition/ThisPage.vue'
import NotFound from "../view/NotFound.vue";
import RouterPage from '../view/route/RouterPage.vue'


import PathPage from '../view/route/PathPage/PathPage.vue'
import ChildPageA from '../view/route/PathPage/pages/ChildPageA.vue'
import ChildPageB from '../view/route/PathPage/pages/ChildPageB.vue'

const router = createRouter({
    history: createWebHashHistory(),
    linkActiveClass:'active',
    linkExactActiveClass:'exact-active',
    routes: [
        { path: '/', redirect:'/DefaultPage'},
        { path: '/DefaultPage', component: DefaultPage,meta:{isHide:true} },
        { path: '/singBa', component: singBa },
        { path: '/ErrorPage', component: ErrorPage },
        { path: '/AssetsPage1', component: AssetsPage1 },
        { path: '/AssetsBuildPage1', component: AssetsBuildPage1 },
        { path: '/DeepStyle1', component: DeepStyle1 },
        { path: '/GloaborPart1', component: GloaborPart1 },
        { path: '/SassPage1', component: SassPage1 },
        { path: '/BulidProject1', component: BulidProject1 },
        { path: '/AxiosPage', component: AxiosPage },
        { path: '/AxiosModel', component: AxiosModel },
        { path: '/AjaxProxy', component: AjaxProxy },
        { path: '/InterceptorsAxios1', component: InterceptorsAxios1 },
        { path: '/CompstionPage', component: CompstionPage },
        { path: '/compoentPage', component: compoentPage },
        { path: '/LifePage', component: LifePage },
        { path: '/ThisPage', component: ThisPage },
        { path: '/RouterPage', component: RouterPage },
       


        
        { path: '/:aa(.*)*', component: NotFound },
        
        { path: '/PathPage', component: PathPage,children:[
            { path: '', redirect:'/ChildPageB'},
            { path: '/ChildPageA', component: ChildPageA },
            { path: '/ChildPageB', component: ChildPageB },
            { path: "/:aa(.*)*", component: NotFound },
        ]},
        

    ]
})


export default router